package com.le.buddha.mobile;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author guole
 * @since 2024-10-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("g_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 支付金额
     */
    private Integer amount;

    /**
     * 商品id
     */
    private Long goodId;

    /**
     * 购买数量
     */
    private Integer num;

    /**
     * 订单状态(0未支付 1已支付,2支付失败 3取消支付)
     */
    private Integer orderStatus;

    /**
     * 支付平台订单号
     */
    private String outTradeNo;

    /**
     * 分成金额
     */
    private Integer sharingAmount;

    /**
     * 分成用户
     */
    private Long sharingUserId;

    /**
     * 支付平台返回数据
     */
    private String payOrderJson;

    /**
     * 订单创建时间
     */
    private Date createTime;

    /**
     * 支付时间
     */
    private Date orderTime;

    /**
     * 订单描述
     */
    private String description;

}
